package com.enqualcomm.kids.network.socket.response;


import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by yinzhiqun on 2015/10/20.
 */
public class QueryAlarmResult extends BasicResult {
    public List<Data> result;
    public static class Data implements Parcelable {
        public String alarmid;
        public String time;
        public int isopen;
        public int ringid;
        public int week;
        public String name;

        @Override
        public int describeContents() {
            return 0;
        }
        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(alarmid);
            dest.writeString(time);
            dest.writeInt(isopen);
            dest.writeInt(ringid);
            dest.writeInt(week);
            dest.writeString(name);
        }

        public static final Creator<Data> CREATOR = new Creator<Data>() {

            @Override
            public Data createFromParcel(Parcel source) {
                Data silenceResult = new Data();
                silenceResult.alarmid = source.readString();
                silenceResult.time = source.readString();
                silenceResult.isopen = source.readInt();
                silenceResult.ringid = source.readInt();
                silenceResult.week = source.readInt();
                silenceResult.name = source.readString();
                return silenceResult;
            }

            @Override
            public Data[] newArray(int size) {
                return null;
            }
        };
    }

}
